﻿.form-control {
    --bb-form-control-padding: 0.375rem 0.75rem;
    padding: var(--bb-form-control-padding);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
}

    .form-control.is-valid[type="number"],
    .form-control.is-invalid[type="number"] {
        padding-right: .75rem;
        background-image: none;
    }

    .form-control:focus {
        border: 1px solid var(--bb-border-focus-color);
        box-shadow: none;
    }

    .form-control:not(.disabled):not(:disabled):not(.is-valid):not(.is-invalid):not(.no-border):hover {
        border: 1px solid var(--bb-border-hover-color);
    }

    .form-control:disabled {
        background-color: var(--bb-disabled-bg);
    }

    .was-validated .form-control:invalid:focus,
    .form-control.is-invalid:focus,
    .was-validated .custom-select:invalid:focus,
    .custom-select.is-invalid:focus {
        border-color: var(--bs-danger);
    }

    .was-validated .form-control:valid:focus,
    .form-control.is-valid:focus,
    .was-validated .custom-select:valid:focus,
    .custom-select.is-valid:focus {
        border-color: var(--bs-success);
    }

.input-number-fix::-webkit-outer-spin-button,
.input-number-fix::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
    -moz-appearance: textfield;
}

.ef-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 2rem;
}

form .form-label:before {
    content: "";
    position: relative;
    top: 2px;
    margin-right: 2px;
    display: inline-block;
    min-width: 5px;
}

form .form-label[required]:before {
    content: "*";
    color: red;
}

.form-control.is-display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-height: var(--bb-height);
}

.table-cell .form-control.is-display,
form .form-control.is-display {
    background-color: var(--bb-disabled-bg);
}
